<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
      业务信息：
	<iframe th:src="@{${formUrl}}" width="100%" height="200px" ></iframe>
	<textarea id="message" style="width: 100%;height: 100px;"></textarea>
	<button type="button" th:each="processButton: ${processButtons}" th:text="${processButton.name}" class="processButton"></button>
	</br>
	流程图
	<iframe th:src="@{/workflow/viewProcessImage(taskId=${taskId})}" width="100%" height="600px" ></iframe>
	历史审批信息
	<iframe th:src="@{/workflow/viewHisComment(taskId=${taskId})}" width="100%" height="500px" ></iframe>
	
	<script type="text/javascript" th:src="@{/js/jquery.js}"></script>
	<script type="text/javascript">
	
		$(function(){
			
			$(".processButton").click(function(){
				var url = "[[@{/}]]workflow/completeTask?taskId=[[${taskId}]]&outcome="+$(this).html()+"&message="+$("#message").val();
				window.location.href=url;
			});
			
		})
	</script>
</body>
</html>